package com.zb777.shuzhilingxi.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.zb777.shuzhilingxi.Pojo.dto.MistakenQuestionDTO;
import com.zb777.shuzhilingxi.Pojo.entity.MistakenQuestion;
import com.zb777.shuzhilingxi.Pojo.entity.MistakenQuestionList;
import com.zb777.shuzhilingxi.result.Result;
import reactor.core.publisher.Flux;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author redaiyu
 * @since 2025-07-12
 */
public interface IMistakenQuestionService extends IService<MistakenQuestion> {

    Result saveMistakenQuestion(MistakenQuestionDTO mistakenQuestionDTO);

    Result<List<MistakenQuestion>> selectMistakenQuestion(Integer listId);

    Result deleteMistakenQuestion(Integer questionId);

    Result updateMistakenQuestion(Integer questionId, MistakenQuestion mistakenQuestion);

   Flux<String> updateMistakenQuestionAnswer(Integer questionId);
}
